# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Heiko Bernloehr <Heiko.Bernloehr@FreeIT.de>
pkgname="lnav"
pkgver="0.8.5"
pkgrel=1
pkgdesc="advanced log file navigator and viewer"
url="https://lnav.org"
arch="all"
options="!check" # failed on some tests
license="BSD-2-Clause"
makedepends="libbsd-dev bzip2-dev zlib-dev sqlite-dev readline-dev pcre-dev
	ncurses-dev bash"
subpackages="$pkgname-doc"
source="https://github.com/tstack/lnav/releases/download/v$pkgver/lnav-$pkgver.tar.gz"
builddir="$srcdir/lnav-$pkgver"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="fbb61d454dc89388aeaaeca6ba1366f84cbd75260ef8e2f26a4208ab22f175886438dad7f40e4c21089209c7713c1ebcc3a722a248083c8d55f264cf139a79fe  lnav-0.8.5.tar.gz"
